#define  _CRT_SECURE_NO_WARNINGS 1
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
	int n = 0, m = 0, i = 0, j = 0, k = 0, p = 0;
	char c = '*';
	n = 1;
	scanf("%d", &m);
	m /= 2;
	m += 2;
	for (i = 1; i < m - 1; i++)
	{
		for (j = 1; j < i; j++)
			printf(" ");
		printf("%c", c);
		for (p = 2; p <= (m - i) * 2 - 2; p++)
			printf(" ");
		printf("%c", c);
		printf("\n");
	}
	for (j = 1; j < m - 1; j++)
		printf(" ");
	printf("%c", c);
	printf("\n");
	for (i = 2; i <= m - 1; i++)
	{
		for (j = 1; j < m - i; j++)
			printf(" ");
		printf("%c", c);
		for (p = 2; p <= 2 * i - 2; p++)
			printf(" ");
		printf("%c", c);
		printf("\n");
	}
	return 0;
}